Skip to content

[6.x] Ensure REST API authentication errors return consistent JSON - #15077

Merged
jasonvarga merged 6 commits into
statamic:6.xfrom
daun:feat/api-authentication-exception
Aug 21, 2026
Merged

[6.x] Ensure REST API authentication errors return consistent JSON#15077
jasonvarga merged 6 commits into
statamic:6.xfrom
daun:feat/api-authentication-exception

Conversation

@daun

@daundaun commented Jul 24, 2026

Copy link
Copy Markdown
Contributor
WWW-Authenticate: Bearer
{
"message": "Unauthenticated."
}

@daun

daun commented Jul 24, 2026

Copy link
Copy Markdown
ContributorAuthor

Looks like the tests were cancelled by GitHub for some reason. Not sure why or how to rerun them.

@duncanmcclean

Copy link
Copy Markdown
Member

Looks like the tests were cancelled by GitHub for some reason. Not sure why or how to rerun them.

It was probably GitHub - I was having issues with actions at the same time. I've just re-run them for you. 😄

@daun

daun commented Jul 25, 2026

Copy link
Copy Markdown
ContributorAuthor

@duncanmcclean Thanks :)

@jasonvarga
jasonvarga merged commit c06d5d8 into statamic:6.xAug 21, 2026
113 of 118 checks passed
@daun
daun deleted the feat/api-authentication-exception branch August 23, 2026 18:32
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

REST API: Unhelpful response on unauthenticated requests

3 participants

@daun@duncanmcclean@jasonvarga