---
title: "List all error codes"
method: GET
path: "/v2/error_codes"
tags: ["errors"]
---

# List all error codes

`GET /v2/error_codes`

## Request

- Base URL: `https://api.hubstaff.com`
- URL: `https://api.hubstaff.com/v2/error_codes`
- Auth: OAuth 2
  - Authorization code: `https://account.hubstaff.com/authorizations/new`
  - Token URL: `https://account.hubstaff.com/access_tokens` scopes: `hubstaff:read`, `hubstaff:write`
- TypeScript: <https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/docs/v2/error_codes/get.ts> (a function with typed inputs; its response is checked against the schema)

Returns all available error codes with their descriptions.
Use these codes for programmatic error handling and i18n support.

Error code ranges:
- 10000-10999: Authentication & Authorization
- 11000-11999: Validation
- 12000-12999: Resource
- 13000-13999: Rate Limiting
- 14000-14999: Time Entries / Activities / Time Off
- 15000-15999: System

## Response `200`

List of error codes

- object
  - `error_codes` ErrorCode[]
    - `code` integer, required: Numeric error code, as returned in error_code
    - `key` string, required: Stable error key
    - `message` string, required: Default error message

---

[API](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api.md) - [All operations](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hubstaff/apis/hubstaff-v2-api/revisions/c6b90e4e4bdc?raw)
