Class ManagementErrorCodes

Assembly: redb.Identity.Management.dll

What a management controller's error document means, as a status code.

The controllers answer failures with a JSON body carrying an error string and no status of their
own — the transport decides how to say "no". That decision is the same one on every transport, so it
lives here, in the package that owns the controllers, rather than once per facade. Two copies of this
table would drift, and the drift that matters is a refusal that arrives as a success.


The values are HTTP status codes because that is the vocabulary the rest of the codebase already
speaks — Core writes verdicts as redbHttp.ResponseCode, and each facade translates from there
into its own protocol. Nothing here is HTTP-specific beyond the spelling.

public static class ManagementErrorCodes

Inheritance

Object→ManagementErrorCodes

Methods

DecidedErrorStatus(IMessage)

The error status already decided for an answer, or null when the table above should decide.

public static int? DecidedErrorStatus(IMessage answer)

ToStatusCode(string)

Maps an error value from a controller's error document to a status code.

public static int ToStatusCode(string error)