Moved content type validation for service after the response code check