You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write the NGINX port to be accessed in the `return-http-status-code/.env` file.
9
+
```
10
+
NGINX_PORT=80
11
+
```
12
+
Start the container
13
+
```
6
14
$ docker-compose -f ./return-http-status-code/docker-compose.yml up -d
7
15
```
8
16
## Usage
9
17
Enter any status code in `[http_status_code]` and access the following URL.
10
18
```
11
-
http://host-ip:8004/[http_status_code]
19
+
http://host-ip:[NGINX_PORT]/[http_status_code]
12
20
```
13
-
If a status code that is not listed in the `flask/app/const.py` is specified, `404 Not Found` will be returned.
21
+
If a status code that is not listed in the [class http.HTTPStatus](https://docs.python.org/3/library/http.html#http-status-codes) is specified, `404 Not Found` will be returned.
0 commit comments