U.S. Geological Survey · JSON Structure

Usgs Water Data Api Error Response Structure

Standard OGC API error response.

Type: object Properties: 2
Federal GovernmentGeologicalEarth ScienceNatural ResourcesEarthquakeWaterHydrology

ErrorResponse is a JSON Structure definition published by U.S. Geological Survey, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

code description

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/u-s-geological-survey/refs/heads/main/json-structure/usgs-water-data-api-error-response-structure.json",
  "description": "Standard OGC API error response.",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Error code.",
      "example": "InvalidParameter"
    },
    "description": {
      "type": "string",
      "description": "Human-readable error description.",
      "example": "Invalid value for parameter bbox."
    }
  },
  "name": "ErrorResponse"
}