0
0
mirror of https://github.com/honojs/hono.git synced 2024-11-22 02:27:49 +01:00

docs: update readme

This commit is contained in:
Yusuke Wada 2022-02-26 16:19:53 +09:00
parent 4ad7259796
commit 4822077fea

View File

@ -190,9 +190,7 @@ app.use('/message/*', async (c, next) => {
app.get('/message/hello', (c) => c.text('Hello Middleware!'))
```
## Error
### Not Found
## Not Found
`app.notFound` for customizing Not Found Response.
@ -202,7 +200,7 @@ app.notFound((c) => {
})
```
### Error Handling
## Error Handling
`app.onError` handle the error and return the customized Response.