corrected the mime type of api error messages, fixes the error messages displaying on the image upload page