correctly return an error response when we are unable to validate an HTTP request