@rexezuge/errors 1.5.2 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,9 +47,9 @@ One class per row of `CATALOG`, so a status can never disagree with its code or
|
|
|
47
47
|
| `NotImplementedError` | 501 | no |
|
|
48
48
|
| `BadGatewayError` | 502 | no |
|
|
49
49
|
| `ServiceUnavailableError` | 503 | yes |
|
|
50
|
-
| `DatabaseError` |
|
|
50
|
+
| `DatabaseError` | 500 | no |
|
|
51
51
|
|
|
52
|
-
`HttpServiceError` is the generic carrier when only a catalog entry is needed. `DatabaseError` carries the D1 classifier's verdict in its `retryable` flag.
|
|
52
|
+
`HttpServiceError` is the generic carrier when only a catalog entry is needed. `DatabaseError` carries the D1 classifier's verdict in its `retryable` flag. Its status is **500**, inherited from the `InternalServerError` catalog entry rather than restated — the whole point of the catalog is that status, code and default message cannot drift apart, so a row that re-declared its own status would be the one entry that could disagree with the table.
|
|
53
53
|
|
|
54
54
|
## 3. Outcome errors
|
|
55
55
|
|