influxdata / openapi

An OpenAPI specification for influx (cloud/oss) apis.
MIT License
17 stars 10 forks source link

chore(aim): Replace 405s with 403s #592

Closed abshierjoel closed 1 year ago

abshierjoel commented 1 year ago

This updates some Quartz endpoints that return 405 errors to return 403 errors instead.

We were using Method Not Allowed 405 responses for when a resource is not able to acted upon. I think these errors are better suited at Forbidden 403, because the HTTP method is accepted, but the action is not allowed for an internal reason.