Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introspective handling #14

Merged
merged 2 commits into from
Apr 20, 2023
Merged

Introspective handling #14

merged 2 commits into from
Apr 20, 2023

Conversation

antonio-gg-dev
Copy link
Member

@antonio-gg-dev antonio-gg-dev commented Apr 20, 2023

📚 Description

I have replaced the situations where the router specifically handled 404 and 500 errors to now use the new own Handlers module instead, this allows the developers to override the built-in behavior and custom handling these errors.

For example with 404s you might want to return, in addition to the header, a response body with a nice HTML error or an informative JSON.

Copy link
Member

@Chemaclass Chemaclass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great PR 👍🏼

@Chemaclass Chemaclass merged commit 13bcd8c into main Apr 20, 2023
@Chemaclass Chemaclass deleted the introspective-handling branch April 20, 2023 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants