What should be the error message?
A good error message has three parts: problem identification, cause details if helpful, and a solution if possible. Whenever an error occurs, user wants to fix it as soon as possible. The error message should have enough information for user that guides him how to get out of the erroneous situation.
What are the three different types of message error?
Critical errors, recoverable errors, and warnings are examples of very common API error types. Below is a look at the difference between the three most common major API error categories.