Force all API calls to serve JSON with the right Content-Type
Default content-type to application/json
Fix use of response_json
Change error message to match the format of ApiTeamDetails