Skip to content

Instantly share code, notes, and snippets.

@ericewers
ericewers / httpResponses.php
Last active December 21, 2023 09:05
HTTP Response Codes and URL Checker
<?php
// Get HTTP Response Codes
function getHTTPCode($httpcode) {
switch ($httpcode) {
case 100: $text = '100 Continue'; break;
case 101: $text = '101 Switching Protocols'; break;
case 200: $text = '200 OK'; break;
case 201: $text = '201 Created'; break;
case 202: $text = '202 Accepted'; break;
@ericewers
ericewers / program.cs
Created July 23, 2019 18:49
A Hero's Journey
/*
* A Hero's Journey
* By Eric Ewers, 7-21-2019
*/
using System;
using System.Collections.Generic;
namespace Adventure
{