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

server: validate file endpoint should return 400, not 500 #488

Merged
merged 1 commit into from
Feb 28, 2019

Conversation

adamdecaf
Copy link
Member

500's represent internal errors (bugs), but 400 is more fitting
here. It also looks like other endpoints here return 5xx errors that
might confuse people later on, so this is showing how we could fixup those.

See: https://github.com/moov-io/api/pull/71

@codecov-io
Copy link

codecov-io commented Feb 27, 2019

Codecov Report

Merging #488 into master will increase coverage by 0.46%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #488      +/-   ##
==========================================
+ Coverage   85.22%   85.68%   +0.46%     
==========================================
  Files         111      111              
  Lines        6558     6561       +3     
==========================================
+ Hits         5589     5622      +33     
+ Misses        674      642      -32     
- Partials      295      297       +2

500's represent internal errors (bugs), but 400 is more fitting
here. It also looks like other endpoints here return 5xx errors that
might confuse people later on, so this is showing how we could fixup those.
@adamdecaf adamdecaf merged commit 9eb4eed into moov-io:master Feb 28, 2019
@adamdecaf adamdecaf deleted the validate-4xx branch February 28, 2019 19:50
adamdecaf added a commit to adamdecaf/ach that referenced this pull request Feb 28, 2019
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