1<?php 2 3namespace ComboStrap; 4 5class HttpResponseStatus 6{ 7 8 public const NOT_MODIFIED = 304; 9 public const NOT_AUTHORIZED = 401; 10 public const ALL_GOOD = 200; 11 public const UNSUPPORTED_MEDIA_TYPE = 415; 12 public const INTERNAL_ERROR = 500; 13 public const NOT_FOUND = 404; 14 public const DOES_NOT_EXIST = 404; 15 public const BAD_REQUEST = 400; 16 17 // after a post, to redirect to a response page 18 public const FOUND_REDIRECT = 302; 19 20 public const PERMANENT_REDIRECT = 301; 21 22 // 303 example: Used to redirect for tracking analysis 23 // For instance, after the user click on a tracking link (in an email or in on page) 24 public const SEE_OTHER_REDIRECT = 303; 25 26} 27