fix: fix http status code (close #193)

This commit is contained in:
JustSong committed 2023-06-23 22:59:44 +08:00
1 parent e873c305f3
commit 74b237544c
4 files changed
+22 -22

No files matched your search

+2 -2
View File
@@ -135,7 +135,7 @@ func RelayNotImplemented(c *gin.Context) {
Param: "",
Code: "api_not_implemented",
}
c.JSON(http.StatusOK, gin.H{
c.JSON(http.StatusNotImplemented, gin.H{
"error": err,
})
}
@@ -147,7 +147,7 @@ func RelayNotFound(c *gin.Context) {
Param: "",
Code: "api_not_found",
}
c.JSON(http.StatusOK, gin.H{
c.JSON(http.StatusNotFound, gin.H{
"error": err,
})
}