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 0a6af5b commit 2020d6bCopy full SHA for 2020d6b
Sources/AWSLambdaRuntime/Lambda+LocalServer.swift
@@ -452,7 +452,7 @@ internal struct LambdaHTTPServer {
452
await self.responsePool.push(
453
LocalServerResponse(
454
id: requestId,
455
- status: .ok,
+ status: .accepted,
456
// the local server has no mecanism to collect headers set by the lambda function
457
headers: HTTPHeaders(),
458
body: body,
Sources/MockServer/MockHTTPServer.swift
@@ -224,7 +224,7 @@ struct HttpServer {
224
} else if requestHead.uri.hasSuffix("/response") {
225
responseStatus = .accepted
226
} else if requestHead.uri.hasSuffix("/error") {
227
- responseStatus = .ok
+ responseStatus = .accepted
228
} else {
229
responseStatus = .notFound
230
}
0 commit comments