Skip to content

Instantly share code, notes, and snippets.

@awrowse
Created February 16, 2012 15:26
Show Gist options
  • Save awrowse/1845607 to your computer and use it in GitHub Desktop.
Save awrowse/1845607 to your computer and use it in GitHub Desktop.
PHP 401 Return
<?php
header($_SERVER['SERVER_PROTOCOL'] . ' 401 Unauthorized', true, 401);
die('401 Unauthorized');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment