GNUnet Error Codes#

GNUnet error code registry.

Policy#

Developers working on GNUnet or packages based on GNUnet should feel free to extend this registry. Entries may be deleted if no code using them is still expected to be in production anywhere.

Updating the name of the package or subsystem is allowed provided that the code using the signature is being moved, as those fields are merely informational or used for code generation.

Entries#

GNUnet Error Codes#

Name

Value

HttpStatus

Description

NONE

0

0 (UNINITIALIZED)

No error (success).

UNKNOWN

1

500 (INTERNAL_SERVER_ERROR)

Unknown and unspecified error.

SERVICE_COMMUNICATION_FAILED

101

500 (INTERNAL_SERVER_ERROR)

Communication with service failed.

IDENTITY_NOT_FOUND

200

404 (NOT_FOUND)

Ego not found.

IDENTITY_NAME_CONFLICT

201

409 (CONFLICT)

Identifier already in use for another ego.

IDENTITY_INVALID

202

500 (INTERNAL_SERVER_ERROR)

The given ego is invalid or malformed.

NAMESTORE_UNKNOWN

5000

500 (INTERNAL_SERVER_ERROR)

Unknown namestore error.

NAMESTORE_ITERATION_FAILED

5001

500 (INTERNAL_SERVER_ERROR)

Zone iteration failed.

NAMESTORE_ZONE_NOT_FOUND

5002

404 (NOT_FOUND)

Zone not found.

NAMESTORE_RECORD_NOT_FOUND

5003

404 (NOT_FOUND)

Record not found.

NAMESTORE_RECORD_DELETE_FAILED

5004

500 (INTERNAL_SERVER_ERROR)

Zone iteration failed.

NAMESTORE_ZONE_EMPTY

5005

404 (NOT_FOUND)

Zone does not contain any records.

NAMESTORE_LOOKUP_ERROR

5006

500 (INTERNAL_SERVER_ERROR)

Failed to lookup record.

NAMESTORE_NO_RECORDS_GIVEN

5007

400 (BAD_REQUEST)

No records given.

NAMESTORE_RECORD_DATA_INVALID

5008

400 (BAD_REQUEST)

Record data invalid.

NAMESTORE_NO_LABEL_GIVEN

5009

400 (BAD_REQUEST)

No label given.

NAMESTORE_NO_RESULTS

5010

404 (NOT_FOUND)

No results given.

NAMESTORE_RECORD_EXISTS

5011

409 (CONFLICT)

Record already exists.

NAMESTORE_RECORD_TOO_BIG

5012

500 (INTERNAL_SERVER_ERROR)

Record size exceeds maximum limit.

NAMESTORE_BACKEND_FAILED

5013

500 (INTERNAL_SERVER_ERROR)

There was an error in the database backend.

NAMESTORE_STORE_FAILED

5014

500 (INTERNAL_SERVER_ERROR)

Failed to store the given records.

NAMESTORE_LABEL_INVALID

5015

400 (BAD_REQUEST)

Label invalid or malformed.