[wp-gsoc] [Summer of Code] #338: HTTP Status 405 on disabled should be 403

Summer of Code noreply at wordpress.org
Tue Jul 23 20:06:26 UTC 2013


#338: HTTP Status 405 on disabled should be 403
--------------------------+---------------------------
 Reporter:  MikeSchinkel  |       Type:  defect
   Status:  new           |   Priority:  normal
Milestone:                |  Component:  JSON REST API
 Keywords:                |
--------------------------+---------------------------
 The plugin currently serves [http://en.wikipedia.org/wiki/HTTP_405 405
 Method Not Allowed] as an error code when the plugin is disabled.  405 is
 for when the wrong HTTP method is provided where methods are `GET`,
 `POST`, `PUT`, etc.:

  ''A request was made of a resource using a request method not supported
 by that resource; for example, using GET on a form which requires data to
 be presented via POST, or using PUT on a read-only resource.''

 The proper status code to return should be
 [http://en.wikipedia.org/wiki/HTTP_403 403 Forbidden]:

  ''A web server may return a 403 Forbidden HTTP status code in response to
 a request from a client for a web page or resource to indicate that the
 server can be reached and understood the request, but refuses to take any
 further action.''

--
Ticket URL: <https://gsoc.trac.wordpress.org/ticket/338>
Summer of Code <https://gsoc.trac.wordpress.org>
My example project


More information about the wp-gsoc mailing list