Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

RFC7807 - Standardize API error messages #361

Closed
nabeelio opened this issue Aug 20, 2019 · 0 comments
Closed

RFC7807 - Standardize API error messages #361

nabeelio opened this issue Aug 20, 2019 · 0 comments
Milestone

Comments

@nabeelio
Copy link
Member

nabeelio commented Aug 20, 2019

Standardize the API error messages according to the Problem Details for HTTP APIs RFC. Don't remove the old error messages since they don't collide.

Fields:

  • type - URL describing error (optional?)
  • title - Title of the error
  • detail - Details
  • status - HTTP status code

Example:

HTTP/1.1 404 Not Found
Content-Type: application/problem+json
Content-Language: en

{
  "type": "https://phpvms.net/problems/unknown-airline",
  "title": "Airline not found.",
  "detail": "The request airline was not found",
  "status": 404
}

Links:

@nabeelio nabeelio added this to the beta milestone Aug 20, 2019
@nabeelio nabeelio changed the title Standardize API error messages RFC7807 - Standardize API error messages Aug 20, 2019
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant