Skip to content

Instantly share code, notes, and snippets.

@eklect
Created August 17, 2021 15:53
Show Gist options
  • Save eklect/207f79d83648bfccd821726af4ac10b6 to your computer and use it in GitHub Desktop.
Save eklect/207f79d83648bfccd821726af4ac10b6 to your computer and use it in GitHub Desktop.
PHP → To Test throwing a 500 error
<?php
header("HTTP/1.0 500 Internal Server Error");
http_response_code(500);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment