Http Status Code 400 vs 412
Use 400 if the request parameters are wrong. Use 412 if one of the If-* request headers like If-Match, If-Modified-Since, etc are wrong. Why? That’s just what RFC says. See for example this extract of If-Match specification: If none of the entity tags match, or if “*” is given and no current entity exists, the … Read more