Divooka Reference

Web Results

10 nodes

On this page 10

Bad Request

Function

400 Bad Request: what the client sent is wrong, said in a JSON error.

Signature
BadRequest(error: Text) -> EndpointResponse
EndpointResponse BadRequest(string error)

Parameters

nametypedefaultdescription
errorText—

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Conflict

Function

409 Conflict: it clashes with what is there - a name taken, an edit of something changed meanwhile.

Signature
Conflict(error: Text) -> EndpointResponse
EndpointResponse Conflict(string error)

Parameters

nametypedefaultdescription
errorText—

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Created

Function

201 Created, saying where the new thing is, with it as JSON.

Signature
Created(location: Text, value: Any) -> EndpointResponse
EndpointResponse Created(string location, object value)

Parameters

nametypedefaultdescription
locationText—Its address, such as /todos/3.
valueAny—

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Forbidden

Function

403 Forbidden: who the request is from is known, and not allowed this.

Signature
Forbidden(message: Text) -> EndpointResponse
EndpointResponse Forbidden(string message = "Forbidden.")

Parameters

nametypedefaultdescription
messageTextForbidden.

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

No Content

Function

204 No Content: done, nothing to say.

Signature
NoContent() -> EndpointResponse
EndpointResponse NoContent()

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Not Found

Function

404 Not Found, with a JSON error.

Signature
NotFound(message: Text) -> EndpointResponse
EndpointResponse NotFound(string message = "Not found.")

Parameters

nametypedefaultdescription
messageTextNot found.

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Ok

Function

200 OK with the value as JSON; text that already is JSON is sent as it is.

Signature
Ok(value: Any) -> EndpointResponse
EndpointResponse Ok(object value)

Parameters

nametypedefaultdescription
valueAny—

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Problem

Function

A problem in the RFC 9457 form ASP.NET Core's Results.Problem writes: status, title and detail, as application/problem+json.

Signature
Problem -> EndpointResponse
    status: Integer
    title: Text
    detail: Text
EndpointResponse Problem(
    int status,
    string title,
    string detail)

Parameters

nametypedefaultdescription
statusInteger—
titleText—
detailText—

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Status

Function

Any status with a JSON body, for the answers the others do not name.

Signature
Status(status: Integer, value: Any) -> EndpointResponse
EndpointResponse Status(int status, object value)

Parameters

nametypedefaultdescription
statusInteger—
valueAny—

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications

Unauthorized

Function

401 Unauthorized: the request did not say who it is, or said it wrongly.

Signature
Unauthorized(message: Text) -> EndpointResponse
EndpointResponse Unauthorized(string message = "Unauthorized.")

Parameters

nametypedefaultdescription
messageTextUnauthorized.

Returns

ResultEndpointResponse
Ships with
Divooka ExploreDivooka Compute
Graph kinds
Flows Function Events Routine Constructs StateMachineState
Declared by
Web Results
Package
Web Applications