Skip to content

Instantly share code, notes, and snippets.

View ugo-brocard's full-sized avatar
🎯
Focusing

Ugo Brocard ugo-brocard

🎯
Focusing
  • Target Tracker
  • Bourg Saint Maurice, France
  • 04:23 (UTC +01:00)
View GitHub Profile
<?php
declare(strict_types = 1);
/**
* Hypertext Transfer Protocol (HTTP) response status codes.
*
* @see https://en.wikipedia.org/wiki/List_of_HTTP_status_codes
*/
enum HttpStatusCode: int
{
<?php
declare(strict_types = 1);
/**
* HTTP request methods.
*
* HTTP defines a set of request methods to indicate the desired action to be
* performed for a given resource. Although they can also be nouns, these
* request methods are sometimes referred as HTTP verbs. Each of them implements
* a different semantic, but some common features are shared by a group of them: