Skip to content

Commit 18bc887

Browse files
committed
fix
1 parent da9e033 commit 18bc887

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/src/http/status_code.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extension type StatusCode(int value) {
77
static const notFound = 404;
88
static const methodNotAllowed = 405;
99
static const notAcceptable = 406;
10-
static const conflict = 406;
10+
static const conflict = 409;
1111
static const unsupportedMediaType = 415;
1212
static const internalServerError = 500;
1313

test/unit/server/response_test.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,9 @@ void main() {
1515
}));
1616
});
1717
});
18+
19+
test('conflict', () async {
20+
final r = conflict();
21+
expect(r.statusCode, equals(409));
22+
});
1823
}

0 commit comments

Comments
 (0)