Dataset Viewer
Auto-converted to Parquet Duplicate
input
stringlengths
13
31
label
stringclasses
2 values
note
stringlengths
56
150
HTTP 400 Bad Request
permanent
Client sent a malformed request, invalid syntax or parameters. Retrying without changes will fail.
HTTP 401 Unauthorized
permanent
Authentication credentials are missing or invalid. Requires correction of credentials.
HTTP 403 Forbidden
permanent
The authenticated client does not have permission to access the resource. Permissions need to be granted.
HTTP 404 Not Found
permanent
The requested resource does not exist. The URL or resource ID is incorrect.
HTTP 408 Request Timeout
retryable
The server did not receive a complete request message within the time that it was prepared to wait. Often due to network congestion or slow client.
HTTP 409 Conflict
permanent
The request conflicts with the current state of the target resource (e.g., duplicate unique identifier). Requires client logic change.
HTTP 429 Too Many Requests
retryable
The client has sent too many requests in a given amount of time ('rate limiting'). Should retry after a delay.
HTTP 500 Internal Server Error
retryable
A generic server-side error. Often transient and can be resolved by retrying.
HTTP 502 Bad Gateway
retryable
The server, while acting as a gateway or proxy, received an invalid response from an upstream server. Often transient.
HTTP 503 Service Unavailable
retryable
The server is currently unable to handle the request due to temporary overloading or maintenance. Retry after a delay.
HTTP 504 Gateway Timeout
retryable
The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server. Often transient.
Connection refused
retryable
Network connection could not be established, typically because the server is not running or unreachable. May be temporary.
Name or service not known
retryable
DNS resolution failed or the host is unreachable. Often a temporary network issue.
SSL_ERROR_SYSCALL
retryable
A low-level network error during SSL/TLS handshake. Often transient network instability.
invalid_grant
permanent
OAuth 2.0: The provided authorization grant (e.g., refresh token) is invalid, expired, or revoked. Requires re-authentication.
access_denied
permanent
OAuth 2.0: The resource owner or authorization server denied the request. User decision or policy.
invalid_request
permanent
OAuth 2.0: The request is missing a required parameter, includes an invalid parameter value, or is otherwise malformed. Client-side error.
rate_limit_exceeded
retryable
API specific: Client has exceeded the allowed number of requests. Retry after a specified period.
resource_not_found
permanent
API specific: The requested resource does not exist. Similar to HTTP 404.
invalid_argument
permanent
API specific: One or more arguments provided in the request are invalid. Requires client-side correction.
service_unavailable_temporarily
retryable
API specific: The service is temporarily unavailable. Often indicates maintenance or transient overload.
database_connection_error
retryable
Backend database issue. Often transient and can recover.
network_unreachable
retryable
The client's network is down or unable to reach the target server. A transient network issue.
circuit_breaker_open
retryable
A system health mechanism indicating a dependency is failing and retries are temporarily blocked to prevent cascading failures. Will eventually reset.
account_suspended
permanent
The user account associated with the request is suspended. Requires administrative action.
billing_issue
permanent
There is an issue with the account's billing or payment method. Requires user or administrative action.
quota_exceeded
retryable
Resource quota (e.g., storage, daily calls) exceeded. May reset after a period.
validation_error
permanent
Input data failed schema or business logic validation. Requires client-side correction.
invalid_api_key
permanent
The provided API key is incorrect, expired, or revoked. Requires an updated valid key.
upstream_service_down
retryable
A dependent service that the API relies on is currently unavailable. Often transient.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

API Error Retryability Classification

This dataset classifies common API error messages and HTTP status codes into two categories: 'retryable' or 'permanent'. Developers can use this to build robust error handling logic, distinguishing between transient issues that can be retried automatically and permanent failures that require user intervention or code changes.

30 rows · category: reliability · licence: CC0-1.0 (public domain)

Usage

import api_error_retryability_classifier as classifier_module
import os

# Create a dummy data.jsonl for demonstration purposes
# In a real scenario, this file would already exist in the module's directory
dummy_data = [
    {"input": "HTTP 400 Bad Request", "label": "permanent", "note": "Client sent malformed request."},
    {"input": "HTTP 500 Internal Server Error", "label": "retryable", "note": "Generic server error."},
    {"input": "HTTP 401 Unauthorized", "label": "permanent", "note": "Authentication missing."}
]
with open("data.jsonl", "w") as f:
    for entry in dummy_data:
        f.write(json.dumps(entry) + "\n")

# Load the dataset
dataset = classifier_module.load()

print(f"Loaded {len(dataset)} entries.")
if dataset:
    print("First entry:", dataset[0]['input'], "->", dataset[0]['label'])
    print("Second entry:", dataset[1]['input'], "->", dataset[1]['label'])

# Clean up the dummy file
os.remove("data.jsonl")

Sample rows

{"input": "HTTP 400 Bad Request", "label": "permanent", "note": "Client sent a malformed request, invalid syntax or parameters. Retrying without changes will fail."}
{"input": "HTTP 401 Unauthorized", "label": "permanent", "note": "Authentication credentials are missing or invalid. Requires correction of credentials."}
{"input": "HTTP 403 Forbidden", "label": "permanent", "note": "The authenticated client does not have permission to access the resource. Permissions need to be granted."}

Files

File What
data.jsonl the dataset, one JSON object per line
tool.py stdlib-only loader and helpers
test_tool.py tests that pass against the data

Source: https://github.com/simalidudu-boop/api-error-retryability-dataset

Support

This is free and public domain. If it saved you time, zap it: SharkSkin@coinos.io


Generated and maintained by an autonomous pipeline. Issues and PRs welcome.

Downloads last month
18