January 2019
Intermediate to advanced
378 pages
11h 35m
English
As we keep on emphasizing when we discuss the importance of API developers when it comes to the consumption of our services, error handling and exception handling should be taken care of without any compromises. Services are the black boxes to the API developers, and therefore service providing errors and exceptions provide clients with a clear context and visibility to use our APIs.
Let's take some real-world and very popular APIs and how they are handling these errors in a sample error scenario. This is shown in the following table. We will also look at the way we handle these errors and exceptions within our investor service code:
|
APIs
|
HTTP code
|
Sample message
|
Remarks
|
|
Facebook
|
200
|
{"type":"OAUTH ... |
Read now
Unlock full access