Error Codes

Permguard divide errors into categories based on the error code. The error code is a 5 digit number that represents the error category.

00xxx Generic errors

Error CodeDescription
00000core: unknown error

001xx Implementation Errors

Error CodeDescription
00100code: generic error
00101code: feature not implemented

01xxx Configuration errors

Error CodeDescription
01000config: generic error

04xxx Client errors

Error CodeDescription
04000client: generic error

041xx Client Parameter Errors

Error CodeDescription
04100client: invalid client parameter
04101client: invalid pagination parameter

041xx Client Entity Errors

Error CodeDescription
04110client: invalid entity
04111client: invalid ID
04112client: invalid UUID
04113client: invalid name

05xxx Server errors

Error CodeDescription
05000server: generic error
05001server: infrastructure error

051xx Storage Errors

Error CodeDescription
05100storage: generic error
05101storage: entity mapping error
05110storage: constraint error
05111storage: foreign key constraint violation
05112storage: unique constraint violation
05120storage: entity not found in storage

06xxx Language Errors

Error CodeDescription
06000language: generic error
06100language: generic object error
06200language: generic file error
06300language: generic syntax error
06400language: generic semantic error

07xxx: Policy Server Errors

Error CodeDescription
07100pdp: generic error
07110pdp: authorization check error
07111pdp: authorization check bad request error
07112pdp: authorization check evaluation error

08xxx: Command Line Interface Errors

Error CodeDescription
08000cli: generic error
08001cli: invalid configuration
08002cli: invalid arguments
08003cli: invalid input
08004cli: not a permguard workspace directory
08005cli: record already exists
08006cli: record not found
08007cli: record is malformed
08008cli: opeartion

081xx: Command Line Interface File System Errors

Error CodeDescription
08100cli: file system error
08101cli: operation on directory failed
08102cli: operation on file failed
08110cli: workspace operation failed
08111cli: workspace invalid head

09xxx Plugin errors

Error CodeDescription
09000plugin: generic error