Comment 2 for bug 1008456

Revision history for this message
Rohit Karajgi (rohitk) wrote :

I agree that these expected response code expectations are arguable, hence I would like to seek opinion.
IMO, for any Image ID that is not in the standard UUID format/syntax, should return a 400 BadRequest. A 404 NotFound requires
an additional database lookup to determine that the data is actually not present, which should ideally be avoided.

Also, 404 NotFound expects the data stream to be correct(valid) but the data is just not available.

For #4, I guess a 400 BadRequest makes more sense than 413 OverLimit.