Skip to content

Catch and raise HTTP 403 Forbidden errors#958

Merged
geographika merged 4 commits into
geopython:masterfrom
geographika:403
Nov 28, 2024
Merged

Catch and raise HTTP 403 Forbidden errors#958
geographika merged 4 commits into
geopython:masterfrom
geographika:403

Conversation

@geographika
Copy link
Copy Markdown
Contributor

It would have been easier to see the reason for recent failing CI tests (see #956) if an error had been raised when HTTP code 403 was returned.

As HTTP error code is a client error code, I added to the list with 400 and 401 (rather than the server error codes 5xx list).

See also #936.

Note, this could break existing workflows by raising a ServiceException - so comments/thoughts welcome.

@coveralls
Copy link
Copy Markdown

coveralls commented Nov 7, 2024

Coverage Status

coverage: 60.107% (-0.1%) from 60.254%
when pulling b3dfe7f on geographika:403
into 40cfa45 on geopython:master.

@landryb
Copy link
Copy Markdown

landryb commented Nov 12, 2024

matches what i had tried in #936, much welcomed !

Sign up for free to 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.

3 participants