dfinity / interface-spec

IC Interface Specification
https://khsfq-wqaaa-aaaak-qckvq-cai.icp0.io/docs
37 stars 20 forks source link

4xx and 5xx responses from query call and read state request #194

Closed mraszyk closed 2 weeks ago

mraszyk commented 1 year ago

Query calls and read state requests can (just like update calls) result in 4xx and 5xx responses:

4xx HTTP status for client errors (e.g. malformed request). Except for 429 HTTP status, retrying the request will likely have the same outcome.

5xx HTTP status when the server has encountered an error or is otherwise incapable of performing the request. The request might succeed if retried at a later time.

We should make this explicit in the spec of query calls and read state requests.