Introducing API Error Docs
Blog post from ReadMe
When using APIs, errors are unavoidable and can result from various issues such as missing parameters or expired keys, with no standardized response across different APIs. The response to errors varies, and while some APIs have comprehensive documentation, others may require users to experiment with different solutions. To address this, ReadMe introduced a new API Error documentation type, allowing developers to document all potential error cases by providing an Error Code that links directly to a dedicated error page using a standardized URL format. This feature aims to enhance user experience by enabling quick access to relevant documentation during error occurrences, and it is recommended to incorporate these URLs within API responses for efficient debugging.