Errors and retries
Lesson 17 of 20 · API.Micro
Error bodies a program can read, and when to try again.
error is a stable code for programs; message is text for humans. Because the shape never changes, the app can handle any error with one piece of code.
Check yourself
Which field should a program check in this error body?
Do it in the browser: a real REST APIs tool, a short mission and instant feedback. No install.
Start this lesson — free