Skip to content

Commit

Permalink
Describe status code means better.
Browse files Browse the repository at this point in the history
  • Loading branch information
NagyZoltanPeter authored Sep 18, 2024
1 parent dede8e7 commit eb1711d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions standards/core/peer-exchange.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ They MAY include a descriptive status in the `status_desc` field if available.
|--------|------|------|
| SUCCESS | 200 | Successful request-response. |
| BAD_REQUEST | 400 | Wrong request payload. It must only contain `request` field. |
| BAD_RESPONSE | 401 | Wrong response payload. If success it must contain `response` and `status_code` fields. If failure, only `status_code` is set. |
| BAD_RESPONSE | 401 | Malformed or illegal response payload returned. If success it must contain `response` and `status_code` fields. If failure, only `status_code` is set. |
| TOO_MANY_REQUESTS | 429 | DOS protection prevented this request as the current request exceeds the configured request rate. |
| SERVICE_UNAVAILABLE | 503 | Request cannot be served, either issue on Responder side or having no suitable peer to issue request. |
| DIAL_FAILURE | 599 | Requester side problem calling PeerExchange peer. |
| SERVICE_UNAVAILABLE | 503 | Request cannot be performed on requester (client) side, either issue on Responder side or having no suitable peer to issue request. |
| DIAL_FAILURE | 599 | Requester (client) side problem calling PeerExchange peer. |

## Implementation Suggestions

Expand Down

0 comments on commit eb1711d

Please sign in to comment.