From 6df68cb970c6ec2d57a6d68fb901df70b67693bf Mon Sep 17 00:00:00 2001 From: jet2tlf Date: Mon, 3 Jun 2024 14:01:32 -0300 Subject: codecrafters submit [skip ci] --- app/status.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'app/status.go') diff --git a/app/status.go b/app/status.go index 6a905c9..dccb508 100644 --- a/app/status.go +++ b/app/status.go @@ -11,8 +11,10 @@ type Status interface { } var ( - Ok Status = &status{200, "OK"} - NotFound Status = &status{404, "Not Found"} + Ok Status = &status{200, "OK"} + Created Status = &status{201, "Created"} + NotFound Status = &status{404, "Not Found"} + InternalServerError Status = &status{500, "Internal Server Error"} ) func (s *status) Code() int { -- cgit v1.2.3