The default error structure
When you try to access a route and that returns an error, the response will be like this:
{
statusCode: number,
message: string,
errors?: any
}
Understanding the errors response and how to handle them
When you try to access a route and that returns an error, the response will be like this: