Class ErrorResponse

Assembly: redb.Identity.Contracts.dll

The error document a management or account route answers with when it refuses a request:
{"error":"not_found","error_description":"..."}. The HTTP and gRPC facades map
to the status of the answer (404 for not_found, 400 for validation_error, and so on).

public sealed class ErrorResponse

Inheritance

Object→ErrorResponse

Properties

Error

The error code, e.g. not_found, validation_error, invalid_operation.

[JsonPropertyName("error")]
public required string Error { get; init; }

ErrorDescription

A text for a person, naming what was refused. Written as null when there is none.

[JsonPropertyName("error_description")]
public required string? ErrorDescription { get; init; }