GET /api/1.3/cdns returns wrong response code and response format when unauthorized or forbidden #1829
Labels
high impact
impacts the basic function, deployment, or operation of a CDN
regression bug
a bug in existing functionality introduced by a new version
Projects
Milestone
If you try to access GET /api/1.3/cdns without being logged in (i.e. no valid cookie) the response should look like this:
401 Unauthorized
{
alerts: [
{
level: "error",
text: "Unauthorized, please log in."
}
]
}
If you are authenticated (your login cookie is valid) but your user doesn't have the proper priv level, the response should look like this:
403 Forbidden
{
alerts: [
{
level: "error",
text: "Forbidden."
}
]
}
The text was updated successfully, but these errors were encountered: