Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Invalid endpoint returns 403 instead of 404 #232

Open
njgingrich opened this issue Jul 27, 2019 · 0 comments
Open

Invalid endpoint returns 403 instead of 404 #232

njgingrich opened this issue Jul 27, 2019 · 0 comments
Assignees
Labels

Comments

@njgingrich
Copy link

Seems related to #228.

Was testing out some endpoints, and the endpoint https://api.propublica.org/congress/v1/116/senate/floor_updates/2017/05/02.json returns a 403, with the following response:

{
	"message": "Missing Authentication Token"
}

The correct endpoint is https://api.propublica.org/congress/v1/senate/floor_updates/2017/05/02.json, without the current congress parameter (116).

It would make more sense in my mind for that invalid endpoint to return a 404, since it made me double check I was in fact sending the correct header, though it's not really that impactful of an issue.

@dwillis dwillis self-assigned this Jul 31, 2019
@dwillis dwillis added the bug label Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants