Returned proper response code from error handlers