Browse Source

Adding 401 message

Julio Montoya 12 years ago
parent
commit
af8ed51ad7
1 changed files with 4 additions and 1 deletions
  1. 4 1
      main/inc/global.inc.php

+ 4 - 1
main/inc/global.inc.php

@@ -292,7 +292,10 @@ $app->error(
 
         if (isset($code)) {
             switch ($code) {
-                case 404:
+                case 401:
+                    $message = 'Unauthorized';
+                    break;
+                case 404: // not found
                     $message = 'The requested page could not be found.';
                     break;
                 default: