Skip to content

Error Codes

Complete reference for all error codes in OAF-100.

Standard Error Response Format

All errors follow this structure:

json
{
  "error": {
    "code": "ERROR_CODE",
    "message": "Human-readable error message",
    "details": { /* Optional additional context */ }
  }
}

General Error Codes

CodeHTTP StatusDescription
INVALID_REQUEST400The request is malformed or missing required fields
VALIDATION_ERROR400Request data failed validation
AUTHENTICATION_FAILED401Missing or invalid authentication credentials
FORBIDDEN403Valid credentials but insufficient permissions
RESOURCE_NOT_FOUND404The requested resource does not exist
METHOD_NOT_ALLOWED405HTTP method not supported for this endpoint
CONFLICT409Request conflicts with current state
INTERNAL_ERROR500Unexpected server error
SERVICE_UNAVAILABLE503Service temporarily unavailable

Location-Specific Error Codes

CodeHTTP StatusDescription
INVALID_COORDINATES400Latitude or longitude values are out of valid range
INVALID_ADDRESS_FORMAT400Address structure doesn't meet requirements
MISSING_LOCATION_DATA400Location must have either address or coordinates
INVALID_STATUS_TRANSITION400Invalid serviceability status change
INVALID_GROUP_REFERENCE400Referenced address or location group doesn't exist

Export Error Codes

CodeHTTP StatusDescription
INVALID_FORMAT400Export format must be 'json' or 'csv'
INVALID_DATE_RANGE400modifiedSince must be before modifiedBefore
EXPORT_SIZE_EXCEEDED400Export request would generate too large a file
EXPORT_GENERATION_FAILED500Failed to generate the export file
EXPORT_NOT_READY404Export still processing or doesn't exist

Query Error Codes

CodeHTTP StatusDescription
INVALID_STATUS400Invalid status value in query parameter
INVALID_LIMIT400Limit must be between 1 and 1000
INVALID_OFFSET400Offset must be non-negative
INVALID_FILTER400Invalid filter parameter or value

Webhook Error Codes

CodeHTTP StatusDescription
WEBHOOK_DELIVERY_FAILEDN/AFailed to deliver event to webhook endpoint
WEBHOOK_TIMEOUTN/AWebhook endpoint didn't respond in time
WEBHOOK_INVALID_RESPONSEN/AWebhook endpoint returned invalid response

Error Detail Examples

Validation Error with Field Details

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid field value",
    "details": {
      "field": "coordinates.latitude",
      "value": 91.5,
      "constraint": "Must be between -90 and 90"
    }
  }
}

Missing Required Field

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Missing required field",
    "details": {
      "field": "address.streetNumber",
      "requirement": "required when address is provided"
    }
  }
}

Invalid Enum Value

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid enum value",
    "details": {
      "field": "fiberAccessDetails.serviceability.status",
      "value": "AVAILABLE",
      "allowedValues": ["PLANNED", "CONSTRUCTION", "ACTIVE", "INACTIVE", "CANCELLED", "RETIRED"]
    }
  }
}

Export Size Limit

json
{
  "error": {
    "code": "EXPORT_SIZE_EXCEEDED",
    "message": "Export would exceed maximum allowed size",
    "details": {
      "estimatedCount": 5000000,
      "maxAllowed": 1000000,
      "suggestion": "Use modifiedSince/modifiedBefore to reduce export size"
    }
  }
}

Resource Not Found

json
{
  "error": {
    "code": "RESOURCE_NOT_FOUND",
    "message": "Location group not found",
    "details": {
      "resourceType": "locationGroup",
      "resourceId": "550e8400-e29b-41d4-a716-446655440000"
    }
  }
}

Invalid Serviceability Status Transition

json
{
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid serviceability status transition",
    "details": {
      "field": "fiberAccessDetails.serviceability.status",
      "currentValue": "CANCELLED",
      "attemptedValue": "ACTIVE",
      "reason": "Cannot transition from terminal state CANCELLED"
    }
  }
}

Open Access Forum API Documentation