#37 Check the Content-Type prior to calling the error callback.