aboutsummaryrefslogtreecommitdiff
path: root/app/status.go
diff options
context:
space:
mode:
authorjet2tlf <jet2tlf@gmail.com>2024-06-03 17:01:32 +0000
committerjet2tlf <jet2tlf@gmail.com>2024-06-03 17:01:32 +0000
commit6df68cb970c6ec2d57a6d68fb901df70b67693bf (patch)
tree1b53efd58b754184d6743d757abb0479c6e7a87d /app/status.go
parentbac4fe6af92603eb0d5c22fed3f1c15a8d7c51f2 (diff)
downloadhttp-server-go-6df68cb970c6ec2d57a6d68fb901df70b67693bf.tar.gz
http-server-go-6df68cb970c6ec2d57a6d68fb901df70b67693bf.zip
codecrafters submit [skip ci]
Diffstat (limited to 'app/status.go')
-rw-r--r--app/status.go6
1 files changed, 4 insertions, 2 deletions
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 {