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

Success/Error handling: Status Codes #14

Open
matthewhudson opened this issue May 4, 2013 · 1 comment
Open

Success/Error handling: Status Codes #14

matthewhudson opened this issue May 4, 2013 · 1 comment

Comments

@matthewhudson
Copy link
Member

Use three simple, common response codes indicating (1) success, (2) failure due to client-side problem, (3) failure due to server-side problem:

  • 200 - OK
  • 400 - Bad Request
  • 500 - Internal Server Error
@elimisteve
Copy link
Contributor

Sounds good to me (except for the inability to provide messages as you guys mentioned in your JSON-RPC thread).

https://github.com/elimisteve/block-status-code-retriever follows this suggestion. Example: https://github.com/elimisteve/block-status-code-retriever/blob/master/web.go#L58

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

No branches or pull requests

2 participants