Error handling

As discussed in the previous section, DynamoDB responds with three kinds of status codes. Response 200 means success; responses starting with 4 (400, 413, and so on) are client-side errors caused by syntax error, and responses starting with 5 (500) are server-side errors, caused because the provisioned throughput has been exceeded, the service is down, and so on.

Along with this status code, every error has an error message too. For example, a request with an invalid signature will result in a 400 error code, with the com.amazon.coral.service#InvalidSignatureException exception with the error message "The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. ...

Get DynamoDB Applied Design Patterns now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.