summaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/api.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/context/api.go b/modules/context/api.go
index 044ec51b56..a46af6ed78 100644
--- a/modules/context/api.go
+++ b/modules/context/api.go
@@ -101,6 +101,12 @@ type APIRedirect struct{}
// swagger:response string
type APIString string
+// APIRepoArchivedError is an error that is raised when an archived repo should be modified
+// swagger:response repoArchivedError
+type APIRepoArchivedError struct {
+ APIError
+}
+
// ServerError responds with error message, status is 500
func (ctx *APIContext) ServerError(title string, err error) {
ctx.Error(http.StatusInternalServerError, title, err)