Skip to content

Instantly share code, notes, and snippets.

View samuele-mattiuzzo's full-sized avatar
🏋️
I'd rather be training

Samuele Mattiuzzo samuele-mattiuzzo

🏋️
I'd rather be training
View GitHub Profile
@samuele-mattiuzzo
samuele-mattiuzzo / Response.php
Created September 17, 2021 12:57 — forked from jeffochoa/Response.php
Laravel HTTP status code
<?php
// This can be found in the Symfony\Component\HttpFoundation\Response class
const HTTP_CONTINUE = 100;
const HTTP_SWITCHING_PROTOCOLS = 101;
const HTTP_PROCESSING = 102; // RFC2518
const HTTP_OK = 200;
const HTTP_CREATED = 201;
const HTTP_ACCEPTED = 202;
-- Two dashes start a one-line comment.
--[[
Adding two ['s and ]'s makes it a
multi-line comment.
--]]
----------------------------------------------------
-- 1. Variables and flow control.
----------------------------------------------------