Skip to content

Add "severity" to Status #232

Closed
Closed
@ddobrin

Description

Enhance the Status with a severity:
Ex.:
ERR10002:
statusCode: 401
code: ERR10002
message: MISSING_AUTH_TOKEN
description: No Authorization header or the token is not bearer type

enhanced to:
ERR10002:
statusCode: 401
code: ERR10002
severity: ERROR
message: MISSING_AUTH_TOKEN
description: No Authorization header or the token is not bearer type

with severity set to a custom value. (ex: INFO, WARN, ERROR, SEVERE)
Default value, for backwards compatibility: ERROR

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions