Skip to main content

status_for

Function status_for 

Source
pub fn status_for(body: &Value, endpoint: Endpoint) -> u16
Expand description

The HTTP status a body is answered with.

200, unless a write refused by a permission’s check reached the legacy endpoint. See the note at the top of this module: the status belongs to the address, and the same refusal at /v1/graphql is a 200.