Updated on 2026-09-20 GMT+08:00

SDK Error Codes

SDK error codes are exceptions thrown by ObsClient. They are inherited from class \RuntimeException. Exceptions are usually OBS server errors, including OBS error codes and error information. This helps users locate and troubleshoot faults.

SDK error codes includes the following:

  • OBS API error codes. For details, see OBS Error Codes.
  • For details about SDK custom exceptions, see Table 1.
    Table 1 SDK custom exceptions

    Exception

    Exception Information

    ObsException.getStatusCode

    HTTP status code

    ObsException.getErrorCode()

    Error code returned by the OBS server

    ObsException.getErrorMessage()

    Error description returned by the OBS server

    ObsException.getErrorRequestId()

    Request ID returned by the OBS server

    ObsException.getErrorHostId()

    Requested server ID

    ObsException.getResponseHeaders()

    HTTP response headers

    ObsException.getRequest

    HTTP request object