We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da9e033 commit 18bc887Copy full SHA for 18bc887
lib/src/http/status_code.dart
@@ -7,7 +7,7 @@ extension type StatusCode(int value) {
7
static const notFound = 404;
8
static const methodNotAllowed = 405;
9
static const notAcceptable = 406;
10
- static const conflict = 406;
+ static const conflict = 409;
11
static const unsupportedMediaType = 415;
12
static const internalServerError = 500;
13
test/unit/server/response_test.dart
@@ -15,4 +15,9 @@ void main() {
15
}));
16
});
17
18
+
19
+ test('conflict', () async {
20
+ final r = conflict();
21
+ expect(r.statusCode, equals(409));
22
+ });
23
}
0 commit comments