Permalink
Browse files

Response where method doesn't exist is now "HTTP 405 Method Not Allow…

…ed", not "HTTP 404 Not Found".
  • Loading branch information...
1 parent ddf9c14 commit 6df5602d358296292d969fc4e24c6fa6fb7aad35 @jacksonj04 jacksonj04 committed Apr 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 application/libraries/REST_Controller.php
@@ -192,7 +192,7 @@ public function _remap($object_called, $arguments)
// Sure it exists, but can they do anything with it?
if ( ! method_exists($this, $controller_method))
{
- $this->response(array('status' => false, 'error' => 'Unknown method.'), 404);
+ $this->response(array('status' => false, 'error' => 'Unknown method.'), 405);
}
// Doing key related stuff? Can only do it if they have a key right?

0 comments on commit 6df5602

Please sign in to comment.