Path: redb-route/redb.Route.Http/Rest/RestErrorProperties.cs
Snapshot: redb-route, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb-route
Page: https://redbase.app/src/dev-2026-12-06/redb-route/redb.Route.Http/Rest/RestErrorProperties.cs
----
namespace redb.Route.Http.Rest;
///
/// Exchange properties the REST request step sets before it hands a refused request to the error
/// handler named by . The handler writes the body; the status
/// code is already in and may be changed by it.
///
public static class RestErrorProperties
{
/// Status code of the refusal (int): 400, 406 or 415.
public const string Code = "redbRest.ErrorCode";
/// Human-readable reason (string); the default body is this text.
public const string Reason = "redbRest.ErrorReason";
/// Name of the offending parameter (string); set for 400 only.
public const string Parameter = "redbRest.ErrorParameter";
}