aboutsummaryrefslogtreecommitdiffstats
path: root/examples/error_hook/README.md
blob: 4a0a4a6a0e3f562fefec52c501f82835f0517d08 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Cowboy Error Hook
=================

To compile this example you need rebar in your PATH.

Type the following command:
```
$ rebar get-deps compile
```

You can then start the Erlang node with the following command:
```
./start.sh
```

Then point your browser to the indicated URL.

Example
-------

``` bash
$ curl -i http://localhost:8080
HTTP/1.1 404 Not Found
connection: keep-alive
server: Cowboy
date: Wed, 27 Feb 2013 23:32:55 GMT
content-length: 56

404 Not Found: "/" is not the path you are looking for.
```