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

feat: improved HTTP errors for REST API #444

Merged
merged 9 commits into from
Sep 3, 2023
Merged

feat: improved HTTP errors for REST API #444

merged 9 commits into from
Sep 3, 2023

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Aug 22, 2023

This change adds middleware for the REST API that catches HTTP errors, as defined in the Standard Library, and returns non-HTML responses. This will make future REST API development cleaner.

Currently, responses are still responding with HTML. Perhaps, the middleware is set up incorrectly.

@iuioiua iuioiua marked this pull request as ready for review August 22, 2023 22:32
Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

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

LGTM

@iuioiua
Copy link
Contributor Author

iuioiua commented Sep 3, 2023

CI errors fixed. Note to self: always run deno task start before pushing commits.

@iuioiua iuioiua merged commit 0270017 into main Sep 3, 2023
7 checks passed
@iuioiua iuioiua deleted the http-errors branch September 3, 2023 02:32
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