Skip to content

Commit

Permalink
feat: create new errors for images
Browse files Browse the repository at this point in the history
Ich habe auch noch einen Endpunkt ERR-000 hinzugefügt für Endpunkte, die nicht existieren
  • Loading branch information
error-domain[bot] authored and Frecherenkel60 committed Jun 16, 2024
1 parent dca7ec7 commit 98ae05f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions goerrors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
package goerrors

var (
EndpointNotFound = &CustomError{
Title: "EndpointNotFound",
Message: "The endpoint was not found. Please check the endpoint and try again.",
Code: "ERR-000",
HttpStatus: 404,
}
BadRequest = &CustomError{
Title: "BadRequest",
Message: "The request body is invalid. Please check the request body and try again.",
Expand Down Expand Up @@ -164,4 +170,10 @@ var (
Code: "ERR-027",
HttpStatus: 404,
}
ImageNotFound = &CustomError{
Title: "ImageNotFound",
Message: "The image was not found. Please check the image URL and try again.",
Code: "ERR-028",
HttpStatus: 404,
}
)

0 comments on commit 98ae05f

Please sign in to comment.