Depending on the application, the incorrect content type on a file would be considered a validation error, instead of a bad upload.
Fun bit of trivia: 422 was originally a WebDAV code, but frameworks like Ruby on Rails started using it for validation errors in forms.
Depending on the application, the incorrect content type on a file would be considered a validation error, instead of a bad upload.
Fun bit of trivia: 422 was originally a WebDAV code, but frameworks like Ruby on Rails started using it for validation errors in forms.