Custom 404 Not Found handler #3
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: go/web#3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Sometimes in some web servers we have a custom response for Not Found (404), talking about Content-Type and message.
I saw that server has a default empty response, can there be a way to handle a customized response?
I realized that because of the condition of how the server handles the request handler, this needs to be passed via the constructor, but let me know your appreciation about it, it's posible?
Hmm. I wonder, is there any use-case that would not be covered by the following?
Custom Not Found (404) http reponse.to Custom 404 Not Found handlerYes man, that could work, but wouldn't that imply having to add all possible HTTP verbs?
I know it's not difficult, but it could be complex knowing that the server already has something to avoid all that configuration.
If you have a good different solution, let me know that.