Skip to content

Commit 53f13cc

Browse files
authored
Update error-handling.md
1 parent dc8273c commit 53f13cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/developer-docs/latest/developer-resources/error-handling.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Errors thrown by the GraphQL API are included in the [response](/developer-docs/
6161

6262
## Throwing errors
6363

64-
### Controllers & Middlewares
64+
### Controllers and middlewares
6565

6666
The recommended way to throw errors when developing any custom logic with Strapi is to have the [controller](/developer-docs/latest/development/backend-customization/controllers.md) or [middleware](/developer-docs/latest/development/backend-customization/) respond with the correct status and body.
6767

@@ -133,7 +133,7 @@ export default async (ctx, next) => {
133133
</code-block>
134134
</code-group>
135135

136-
### Services and Model Lifecycles
136+
### Services and models lifecycles
137137

138138
Once you are working at a deeper layer than the controllers or middlewares there are dedicated error classes that can be used to throw errors. These classes are extensions of [Node `Error` class](https://nodejs.org/api/errors.html#errors_class_error) and are specifically targeted for certain use-cases.
139139

0 commit comments

Comments
 (0)