Skip to content

Explorer API returns HTTP 403 forbidden for non-existent resources #29

Open

Description

@adamretter

When accessing a resource that does not exist via the /explorer API, we should we return HTTP 403 or HTTP 404. Arguable 403 is more secure, but perhaps misleading... we need to give this some thought.

Activity

  1. self-assigned this
    on Sep 22, 2020
  2. changed the title [-]/explorer API returns HTTP 403 forbidden for non-existent resources[/-] [+]Explorer API returns HTTP 403 forbidden for non-existent resources[/+] on Sep 22, 2020
  3. duncdrum commented on Jul 7, 2021

    @duncdrum
    Contributor

    has thought been given? 403 seems the better choice to me, not sure how it is misleading because the /explorer endpoint is there?

  4. adamretter commented on Jul 7, 2021

    @adamretter
    MemberAuthor

    I think that if the user is authorized and the resource does not exist then the response should be 404, if the user is not authorized that takes priority and the response should be 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions