Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Buffalo should respect http status when returning error #2186

Merged
merged 5 commits into from
Dec 9, 2021

Conversation

dmuriel
Copy link
Contributor

@dmuriel dmuriel commented Dec 9, 2021

When returning an HTTP Status different than 404 caused by an "sql.ErrNoRows" buffalo is automatically changing the error status to a 404 error. Buffalo should respect the error status passed on the return.

@dmuriel dmuriel requested a review from a team as a code owner December 9, 2021 16:42
route_info_test.go Outdated Show resolved Hide resolved
Copy link
Member

@paganotoni paganotoni left a comment

Choose a reason for hiding this comment

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

Thanks @dmuriel

@paganotoni paganotoni merged commit bde2103 into gobuffalo:development Dec 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants