Return an "Unauthorized" error message + refresh zion contract types (#44)

* Add unauthorized message

* update regenerated types for zion contracts
This commit is contained in:
Tak Wai Wong 2022-10-19 19:39:33 -07:00
parent 18db428c23
commit 94061b7b8d
No known key found for this signature in database
GPG key ID: 222E4AF2AA1F467D
2 changed files with 214 additions and 62 deletions

View file

@ -264,7 +264,7 @@ func Setup(
if !isAllowed {
return util.JSONResponse{
Code: http.StatusUnauthorized,
JSON: jsonerror.Forbidden(""),
JSON: jsonerror.Forbidden("Unauthorised"),
}
}

File diff suppressed because one or more lines are too long