Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 38fc94d

Browse files
committed
Aggiornata documentazione CustomResponse
1 parent 31cba62 commit 38fc94d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/NET6CustomLibrary/Docs/README-CustomResponse.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Custom response result configuration
22

3+
:alarm_clock: More status codes will be added soon
4+
35

46
## Example of custom message for a 200 Ok status
57

@@ -23,6 +25,8 @@
2325
throw new ExceptionResponse(HttpStatusCode.Created, "Created", $"Insert a custom object created message here");
2426
```
2527

28+
:information_source: After the custom message, as the last parameter it is also possible to add a T object that will be returned in the response
29+
2630
## Example of custom message for a 404 NotFound status
2731

2832
```csharp
@@ -33,4 +37,4 @@
3337
throw new ExceptionResponse(HttpStatusCode.NotFound, "NotFound", "Insert a custom object not found message here");
3438
```
3539

36-
:alarm_clock: More status codes will be added soon
40+
:information_source: After the custom message, as the last parameter it is also possible to add a T object that will be returned in the response

0 commit comments

Comments
 (0)