Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DynamoDB Applied Design Patterns

You're reading from   DynamoDB Applied Design Patterns Apply efficient DynamoDB design patterns for high performance of applications

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781783551897
Length 202 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Uchit Hamendra Vyas Uchit Hamendra Vyas
Author Profile Icon Uchit Hamendra Vyas
Uchit Hamendra Vyas
Arrow right icon
View More author details
Toc

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. Consult the service documentation for details.".

Let's see what all the possible client-side errors are. There are only two client-side status error codes. These are 400 and 413. Out of these client-side errors, a few are timing errors only. If we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image