503 error callback wasn't being executed due to content-type and mimetype not being explicitly set to application/json