net/http: http server Golang does not allow to handle unexpected errors #30164
Labels
Milestone
Comments
Please mention exactly what you did. And why you expect the 400 response to be a bug. Regarding your other questions, you will get better answers on any of the forums. |
Hello, I want to use m own message to all of http server error of Go like 400 bad requests. |
Why can't you wrap your requests in a middleware and use your own message ? |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?1.10.7
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
When I'll put % to my HTTP server go cause '400 Bad Request'
Example: http://localhost/somerequest%
That's all want to know maybe another mimic error we have?
And how to handle them to my custom messages.
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: