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

Better error response for invalid content-type #332

Closed
jimlambie opened this Issue Oct 10, 2017 · 0 comments

Comments

Projects
1 participant
@jimlambie
Copy link
Member

jimlambie commented Oct 10, 2017

When POSTing data with a content-type other than "application/json" a 400 error is returned with no information:

{
  "name":"dadi-dadi-api",
  "hostname":"ip-172-31-22-165",
  "level":50,
  "module":"api",
  "msg":"{ Error: Validation Failed\n statusCode: 400, success: undefined, errors: undefined }",
  "time":"2017-10-10T11:00:55.085Z",
  "v":0
}

@jimlambie jimlambie added this to In Progress in API Version 3.0 Oct 25, 2017

@jimlambie jimlambie moved this from In Progress to Ready for Release in API Version 3.0 Oct 25, 2017

@jimlambie jimlambie closed this Dec 7, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment