Backend: Add errors

This commit is contained in:
Theresa Gresch 2020-05-04 17:11:53 +02:00
parent 6e2062ea4b
commit eb0467cde8

View file

@ -17,6 +17,7 @@ var (
ErrAlbumNotFound = gin.H{"code": http.StatusNotFound, "error": "Album not found"}
ErrPhotoNotFound = gin.H{"code": http.StatusNotFound, "error": "Photo not found"}
ErrLabelNotFound = gin.H{"code": http.StatusNotFound, "error": "Label not found"}
ErrFileNotFound = gin.H{"code": http.StatusNotFound, "error": "File not found"}
ErrUnexpectedError = gin.H{"code": http.StatusInternalServerError, "error": "Unexpected error"}
ErrSaveFailed = gin.H{"code": http.StatusInternalServerError, "error": "Changes could not be saved"}
ErrFormInvalid = gin.H{"code": http.StatusBadRequest, "error": "Changes could not be saved"}