API not HTTP conform #244

Closed
opened 2013-06-22 01:09:49 +02:00 by AyrA · 0 comments
AyrA commented 2013-06-22 01:09:49 +02:00 (Migrated from github.com)

Issue

The API does not responds correctly to failed login attempts.

Current result

In case invalid or no credentials are provided, the API returns an XML with an error message. While this is not incorrect, the HTTP headers themselves are.

Expected result

The API should return with a 401 Header in case no login credentials are provided and with a 401 or 403 code if invalid credentials are provided.
401: Authentication required (specify username and password please)
403: Forbidden (do not try again with this user. It is invalid)

# Issue The API does not responds correctly to failed login attempts. # Current result In case invalid or no credentials are provided, the API returns an XML with an error message. While this is not incorrect, the HTTP headers themselves are. # Expected result The API should return with a 401 Header in case no login credentials are provided and with a 401 or 403 code if invalid credentials are provided. 401: Authentication required (specify username and password please) 403: Forbidden (do not try again with this user. It is invalid)
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Bitmessage/PyBitmessage-2024-12-01#244
No description provided.