registry.rec (2860B)
1 # -*- mode: rec -*- 2 # 3 # Registry for GNUnet errors. 4 # 5 %rec: GnunetErrorCode 6 %key: Value 7 %typedef: ValueRange_t range 0 9999 8 %type: Value ValueRange_t 9 %mandatory: Value 10 %typedef: Description_t regexp |^[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_-][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_\(\)\.,;!"':#\/ -]*$| 11 %type: Description Description_t 12 %mandatory: Description 13 %typedef: Name_t regexp /^[ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_0123456789]*$/ 14 %type: Name Name_t 15 %unique: Name 16 %mandatory: Name 17 # A status of 0 means no HTTP status is associated 18 %type: HttpStatus rec HttpStatusCode 19 %mandatory: HttpStatus 20 %sort: Value 21 22 Value: 0 23 Name: NONE 24 Description: No error (success). 25 HttpStatus: 0 26 27 Value: 1 28 Name: UNKNOWN 29 Description: Unknown and unspecified error. 30 HttpStatus: 500 31 32 Value: 101 33 Name: SERVICE_COMMUNICATION_FAILED 34 Description: Communication with service failed. 35 HttpStatus: 500 36 37 # IDENTITY Error Codes 38 39 Value: 200 40 Name: IDENTITY_NOT_FOUND 41 Description: Ego not found. 42 HttpStatus: 404 43 44 Value: 201 45 Name: IDENTITY_NAME_CONFLICT 46 Description: Identifier already in use for another ego. 47 HttpStatus: 409 48 49 Value: 202 50 Name: IDENTITY_INVALID 51 Description: The given ego is invalid or malformed. 52 HttpStatus: 500 53 54 # NAMESTORE Error Codes 55 56 Value: 5000 57 Name: NAMESTORE_UNKNOWN 58 Description: Unknown namestore error. 59 HttpStatus: 500 60 61 Value: 5001 62 Name: NAMESTORE_ITERATION_FAILED 63 Description: Zone iteration failed. 64 HttpStatus: 500 65 66 Value: 5002 67 Name: NAMESTORE_ZONE_NOT_FOUND 68 Description: Zone not found. 69 HttpStatus: 404 70 71 Value: 5003 72 Name: NAMESTORE_RECORD_NOT_FOUND 73 Description: Record not found. 74 HttpStatus: 404 75 76 Value: 5004 77 Name: NAMESTORE_RECORD_DELETE_FAILED 78 Description: Zone iteration failed. 79 HttpStatus: 500 80 81 Value: 5005 82 Name: NAMESTORE_ZONE_EMPTY 83 Description: Zone does not contain any records. 84 HttpStatus: 404 85 86 Value: 5006 87 Name: NAMESTORE_LOOKUP_ERROR 88 Description: Failed to lookup record. 89 HttpStatus: 500 90 91 Value: 5007 92 Name: NAMESTORE_NO_RECORDS_GIVEN 93 Description: No records given. 94 HttpStatus: 400 95 96 Value: 5008 97 Name: NAMESTORE_RECORD_DATA_INVALID 98 Description: Record data invalid. 99 HttpStatus: 400 100 101 Value: 5009 102 Name: NAMESTORE_NO_LABEL_GIVEN 103 Description: No label given. 104 HttpStatus: 400 105 106 Value: 5010 107 Name: NAMESTORE_NO_RESULTS 108 Description: No results given. 109 HttpStatus: 404 110 111 Value: 5011 112 Name: NAMESTORE_RECORD_EXISTS 113 Description: Record already exists. 114 HttpStatus: 409 115 116 Value: 5012 117 Name: NAMESTORE_RECORD_TOO_BIG 118 Description: Record size exceeds maximum limit. 119 HttpStatus: 500 120 121 Value: 5013 122 Name: NAMESTORE_BACKEND_FAILED 123 Description: There was an error in the database backend. 124 HttpStatus: 500 125 126 Value: 5014 127 Name: NAMESTORE_STORE_FAILED 128 Description: Failed to store the given records. 129 HttpStatus: 500 130 131 Value: 5015 132 Name: NAMESTORE_LABEL_INVALID 133 Description: Label invalid or malformed. 134 HttpStatus: 400 135 136