Token error
Test the sign-in prompt for expired or invalid tokens.
View payload and cURL
Headers
{
"WWW-Authenticate": "Bearer realm=\"stubpoint\""
}
Body
{
"error": "invalid_token",
"message": "Sign in again to continue."
}
Create with cURL
curl -i 'https://stubpoint.dev/api/endpoints' -H 'Content-Type: application/json' -d '{
"body": "{\"error\":\"invalid_token\",\"message\":\"Sign in again to continue.\"}",
"content_type": "application/json",
"headers": {
"WWW-Authenticate": "Bearer realm=\"stubpoint\""
},
"methods": [
"GET",
"POST"
],
"status": 401
}'