better error message for the client when the request is bad.