Use "403 Forbidden" instead of "400 Bad Request". #2

Merged
merged 1 commit into from Jan 22, 2012

Conversation

Projects
None yet
2 participants
Contributor

PiotrSikora commented Jan 22, 2012

Per RFC2616:

10.4.1 400 Bad Request
The request could not be understood by the server due to malformed
syntax.

10.4.4 403 Forbidden
The server understood the request, but is refusing to fulfill it.
Authorization will not help and the request SHOULD NOT be repeated.

@PiotrSikora PiotrSikora Use "403 Forbidden" instead of "400 Bad Request".
Per RFC2616:

10.4.1 400 Bad Request
The request could not be understood by the server due to malformed
syntax.

10.4.4 403 Forbidden
The server understood the request, but is refusing to fulfill it.
Authorization will not help and the request SHOULD NOT be repeated.

Change-Id: Idb6ea7fa49c61bd9e6cc6067afdae57c7c81817b
Signed-off-by: Piotr Sikora <piotr.sikora@frickle.com>
65379bb

@igrigorik igrigorik added a commit that referenced this pull request Jan 22, 2012

@igrigorik igrigorik Merge pull request #2 from PiotrSikora/403
Use "403 Forbidden" instead of "400 Bad Request".
148e58e

@igrigorik igrigorik merged commit 148e58e into igrigorik:master Jan 22, 2012

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