Return error with application/json content type by default