Simplified with HttpResponses.error.