support basic auth and create deployment container
This commit is contained in:
@@ -334,6 +334,8 @@ DynamoDB_Error_Type :: enum {
|
||||
ItemCollectionSizeLimitExceededException,
|
||||
InternalServerError,
|
||||
SerializationException,
|
||||
MissingAuthenticationTokenException, // HTTP 403
|
||||
UnrecognizedClientException, // HTTP 400 Dynamo uses 400 for some invalid auth stuff
|
||||
}
|
||||
|
||||
error_to_response :: proc(err_type: DynamoDB_Error_Type, message: string) -> string {
|
||||
@@ -356,6 +358,10 @@ error_to_response :: proc(err_type: DynamoDB_Error_Type, message: string) -> str
|
||||
type_str = "com.amazonaws.dynamodb.v20120810#InternalServerError"
|
||||
case .SerializationException:
|
||||
type_str = "com.amazonaws.dynamodb.v20120810#SerializationException"
|
||||
case .MissingAuthenticationTokenException:
|
||||
type_str = "com.amazonaws.dynamodb.v20120810#MissingAuthenticationTokenException"
|
||||
case .UnrecognizedClientException:
|
||||
type_str = "com.amazonaws.dynamodb.v20120810#UnrecognizedClientException"
|
||||
}
|
||||
|
||||
return fmt.aprintf(`{{"__type":"%s","message":"%s"}}`, type_str, message)
|
||||
|
||||
Reference in New Issue
Block a user