Browse files

added 404 error on method not found

  • Loading branch information...
1 parent b258a82 commit 5461fb7ec61b11016eecf65ca8a1023ebb0b12ff @thefosk thefosk committed Jun 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 mashape/methods/handler.php
View
2 mashape/methods/handler.php
@@ -133,7 +133,7 @@ public static function handleAPI($instance, $serverKey) {
header("HTTP/1.0 501 Not Implemented");
break;
case EXCEPTION_METHOD_NOTFOUND_CODE:
- header("HTTP/1.0 200 OK");
+ header("HTTP/1.0 404 Not Found");
break;
case EXCEPTION_AUTH_INVALID_CODE:
self::setUnauthorizedResponse();

0 comments on commit 5461fb7

Please sign in to comment.