Error handling

This API uses standard HTTP response codes to indicate whether a method completed successfully. A 200 response indicates success. A 400 type response indicates a failure, and a 500 type response indicates an internal system error.

HTTP Error Code

Description

Recovery

200

Success

The request was successful.

400

Bad Request

The input parameters in the request body are either incomplete or in the wrong format. Be sure to include all required parameters in your request.

401

Unauthorized

You are not authorized to make this request. Log in to IBM Cloud and try again. If this error persists, contact the account owner to check your permissions.

403

Forbidden

The supplied authentication is not authorized to access ‘{namespace}’.

404

Not Found

The requested resource could not be found.

408

Request Timeout

The connection to the server timed out. Wait a few minutes, then try again.

409

Conflict

The entity is already in the requested state.

500

Internal Server Error

offering_name is currently unavailable. Your request could not be processed. Wait a few minutes and try again.

Name

Type

Description

code

Integer

HTTP error code.

error

String

Human-readable error string, like ‘Invalid image file’.