Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cards › AWS

AWS Cloud

Catch by error code

This revision card explains Catch by error code. It starts from the need that python — ClientError. It describes PHP — AwsException. The how-to section notes node — err.name. An example on the card is retry throttles and 5xx, fix 4xx.

Catch by error code Python: ClientError. PHP: AwsException. Node: err.name. Retry throttles and 5xx, fix 4xx.
Catch by error code · Download PNG
Read card text

What this card says

Why do we need it?

Python: ClientError.

e.response["Error"]["Code"]

What is it?

PHP: AwsException.

$e->getAwsErrorCode()

How to do it

Node: err.name.

err.$metadata.httpStatusCode

Example

Retry throttles and 5xx, fix 4xx.

See all AWS revision cards