Complete the code to set the 'type' field in the Problem Details JSON.
{
"type": "[1]",
"title": "Invalid Request",
"status": 400
}The 'type' field should be a URI. 'about:blank' is the default URI indicating no specific type.
Complete the code to add the 'detail' field explaining the error.
{
"type": "about:blank",
"title": "Invalid Request",
"status": 400,
"detail": "[1]"
}The 'detail' field should contain a human-readable explanation of the error.
Fix the error in the 'status' field to use the correct HTTP status code.
{
"type": "about:blank",
"title": "Not Found",
"status": [1]
}The 'status' field must be a number representing the HTTP status code, here 404 for Not Found.
Fill both blanks to add an 'instance' URI and a custom 'error_code' field.
{
"type": "about:blank",
"title": "Unauthorized",
"status": 401,
"instance": "[1]",
"error_code": "[2]"
}The 'instance' field is a URI reference to the specific occurrence of the problem, here '/login'. The 'error_code' is a custom code identifying the error.
Fill all three blanks to create a Problem Details JSON with a custom type, title, and status.
{
"type": "[1]",
"title": "[2]",
"status": [3]
}The 'type' is a URI describing the error type. The 'title' is a short summary. The 'status' is the HTTP status code number.