@octokit/request-error provides standardized error handling for Octokit.js, GitHub's API client library. It extends the standard JavaScript Error object with properties specific to API request failures, such as HTTP status code, request headers, and response data. This allows developers to easily identify and handle different types of API errors, improving the robustness and user experience of applications integrating with the GitHub API. The package promotes consistency in error reporting across Octokit and simplifies error debugging.
@octokit/request-error releases were frequent in 2019 and 2020, with a lull in 2021 and early 2022. Releases picked up again in mid-2022, with versions 3, 4, 5, 6 and 7. The releases have been more sporadic in 2023, 2024 and 2025. There were no releases in the last three months (June, July and August of 2025).
@octokit/request-error npm package downloads show a general upward trend from March 2024 to August 2025. Starting at 37.5 million in March 2024, downloads peaked at 72.3 million in June 2025. July 2025 saw a slight decrease, and August 2025's data is incomplete due to the current date.