> For the complete documentation index, see [llms.txt](https://docs.saturncms.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.saturncms.net/1.0.0/dev/libraries-and-functions/http.md).

# HTTP

## Routing

Routing allows you to create custom pages in Saturn.

```php
use Saturn\HTTPManager\Router;
$Router = new Router();

//GET
$Router->GET('/myroute', '/Plugins/MyPlugin/MyFile.php');
// POST
$Router->POST('/myformpost', '/Plugins/MyPlugin/MyFile.php');
```

## Response

Response allows you to quickly and easily send HTTP responses in PHP. The functions modify the headers sent by PHP then terminate the script.

```php
use Saturn\HTTPManager\Response;
$Response = new Response();

// Send HTTP 500
$Response->HTTP500();

// Send HTTP 405
$Response->HTTP405();

// Send HTTP 404
$Response->HTTP404();

// Send HTTP 403
$Response->HTTP403();
```
