Skip to content

Commit de15808

Browse files
committed
Move dev-adr on http status code to a standard ADR
1 parent 27912bc commit de15808

File tree

2 files changed

+29
-23
lines changed

2 files changed

+29
-23
lines changed

DEV-ADR.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,6 @@ To complete
2323
To complete
2424
-->
2525

26-
## 3. Specific Mithril status code
27-
28-
date: 2025-03-21
29-
status: Accepted
30-
31-
### Context
32-
33-
In exchanges between the signer and the aggregator, we need to retrieve the reason why a request was unsuccessful.
34-
Error handling will depend on the specific functional case of Mithril.
35-
We could have reused existing HTTP codes, but they are too general and could be returned for cases other than the one we wish to isolate.
36-
37-
### Decision
38-
39-
We therefore decided to return specific server error codes starting at 550.
40-
41-
Status codes introduced:
42-
43-
- 550: registration round not yet opened
44-
45-
### Consequences
46-
47-
Specific Mithril HTTP status code on server error should be greater or equal to 550.
48-
4926
## 2. Remove Artifacts serialization support when compiling to WebAssembly
5027

5128
date: 2025-02-26
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
slug: 10
3+
title: |
4+
10. Specific Mithril Http status code
5+
authors:
6+
- name: Mithril Team
7+
tags: [Accepted]
8+
date: 2025-03-21
9+
---
10+
11+
## Status
12+
13+
Accepted
14+
15+
## Context
16+
17+
In exchanges between the signer and the aggregator, we need to retrieve the reason why a request was unsuccessful.
18+
Error handling will depend on the specific functional case of Mithril.
19+
We could have reused existing HTTP codes, but they are too general and could be returned for cases other than the one we wish to isolate.
20+
21+
## Decision
22+
23+
We therefore decided to return specific error codes when we need to identify the functional case.
24+
We start at 450 for client error codes and at 550 for server error codes.
25+
26+
## Consequences
27+
28+
Specific Mithril HTTP status code on server error should be between 550 and 599.
29+
For client error the HTTP status code should be between 450 and 499.

0 commit comments

Comments
 (0)