Sends an error message in JSON format.
The error message to send.
The HTTP status code to return. Default is 400 Bad Request.
400 Bad Request