This commit is contained in:
Dane Everitt 2020-09-25 19:23:31 -07:00
parent 7646c27c5a
commit 2cc06e0528
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ func (e *RequestError) AbortFilesystemError(c *gin.Context) {
}
if errors.Is(e.Err, server.ErrNotEnoughDiskSpace) {
c.AbortWithStatusJSON(http.StatusBadRequest, gin.H{
c.AbortWithStatusJSON(http.StatusConflict, gin.H{
"error": server.ErrNotEnoughDiskSpace.Error(),
})
return

View File

@ -309,7 +309,7 @@ func postServerCompressFiles(c *gin.Context) {
f, err := s.Filesystem.CompressFiles(data.RootPath, data.Files)
if err != nil {
TrackedServerError(err, s).AbortWithServerError(c)
TrackedServerError(err, s).AbortFilesystemError(c)
return
}
@ -374,7 +374,7 @@ func postServerDecompressFiles(c *gin.Context) {
return
}
TrackedServerError(err, s).AbortWithServerError(c)
TrackedServerError(err, s).AbortFilesystemError(c)
return
}