RResponse class
Il riferimento e' in inglese: viene dai commenti del sorgente di RAVAL, che dalla 2.0 ha nomi e commenti in inglese.
public sealed class RResponseThe response of a method with an HTTP status other than 200, or an error with its message.
Costruttori
RResponse(int status, object body)A status and an object to send as JSON.
ProprietÃ
int Status { get; }The HTTP status (200, 201, 404...).
object Body { get; }The object to send as JSON; null = response without a body.
Metodi
static RResponse Created(object body)201: created, with the new object.
static RResponse NotFound(string message)404 with the message: { "error": "..." }.
static RResponse Error(int status, string message)An error with its status and message: { "error": "..." }.