check api status

This commit is contained in:
Michael Yang
2023-07-11 13:05:51 -07:00
parent 2a66a1164a
commit e243329e2e
3 changed files with 38 additions and 11 deletions

View File

@@ -108,7 +108,7 @@ func pull(c *gin.Context) {
remote, err := getRemote(req.Model)
if err != nil {
c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
c.JSON(http.StatusBadGateway, gin.H{"error": err.Error()})
return
}