Permalink
Browse files

Invalid method should be 405 not 404 (thanks to @jacksonj04).

  • Loading branch information...
Phil Sturgeon
Phil Sturgeon committed Apr 12, 2012
1 parent 1821101 commit 563026a0962620f7b19537920bcfc00524ad5306
Showing with 1 addition and 1 deletion.
  1. +1 −1 classes/controller/rest.php
@@ -18,7 +18,7 @@
/**
* @var integer status code to return in case a not defined action is called
*/
- protected $no_method_status = 404;
+ protected $no_method_status = 405;
/**
* @var integer status code to return in case the called action doesn't return data

0 comments on commit 563026a

Please sign in to comment.