diff options
| author | jet2tlf <jet2tlf@gmail.com> | 2024-06-03 17:01:32 +0000 |
|---|---|---|
| committer | jet2tlf <jet2tlf@gmail.com> | 2024-06-03 17:01:32 +0000 |
| commit | 6df68cb970c6ec2d57a6d68fb901df70b67693bf (patch) | |
| tree | 1b53efd58b754184d6743d757abb0479c6e7a87d /app/status.go | |
| parent | bac4fe6af92603eb0d5c22fed3f1c15a8d7c51f2 (diff) | |
| download | http-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.go | 6 |
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 { |