server { listen 80; access_log /var/log/nginx/access.log; location = /login { return 401 "denied\n"; } location = /boom { return 500 "error\n"; } location = /missing { return 404 "none\n"; } location / { return 200 "hello\n"; } }