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

Fix error code handling #1231

Merged
merged 1 commit into from
Nov 2, 2018
Merged

Fix error code handling #1231

merged 1 commit into from
Nov 2, 2018

Commits on Nov 2, 2018

  1. fix(errors): Only return 400 status on known parameter errors

    Pelias has for a long time returned 400 as a default status whenever
    anything goes wrong, as well as when a user has passed invalid
    parameters.
    
    By using a new exception class, it is now possible to differetiate
    between known parameter errors, and unexpected errors that truly
    represent an HTTP 500.
    orangejulius committed Nov 2, 2018
    Configuration menu
    Copy the full SHA
    a1c4829 View commit details
    Browse the repository at this point in the history