Skip to content

A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).

License

Notifications You must be signed in to change notification settings

rodortega/http-status-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

http_status_code

A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).

To use:

require 'Response.php'; 

$Response = new Response();
$Response->setResponse(500); //sets the header to HTTP/1.1 500 Server Error: Internal Server Error

About

A simple PHP class that sets the appropriate header for requests (Useful for REST APIs).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages