summaryrefslogtreecommitdiff
path: root/modules/caddyhttp/staticerror.go
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2020-04-11 09:01:40 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2020-04-11 09:01:40 -0600
commit68cebb28d063a7a71705ce022f118b5e1205fa3f (patch)
tree6160f51ecb9b17720cf373a389765fa923995583 /modules/caddyhttp/staticerror.go
parenta3bdc22234b75e9420f8810918072fa34732ffb7 (diff)
Fix some godocs
Diffstat (limited to 'modules/caddyhttp/staticerror.go')
-rw-r--r--modules/caddyhttp/staticerror.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/caddyhttp/staticerror.go b/modules/caddyhttp/staticerror.go
index 306c3eb..d2d255e 100644
--- a/modules/caddyhttp/staticerror.go
+++ b/modules/caddyhttp/staticerror.go
@@ -34,11 +34,11 @@ func init() {
// Since this handler does not write a response, the error information
// is for use by the server to know how to handle the error.
type StaticError struct {
- // The recommended HTTP status code. Can be either an integer or a
- // string if placeholders are needed. Optional. Default is 500.
+ // The error message. Optional. Default is no error message.
Error string `json:"error,omitempty"`
- // The error message. Optional. Default is no error message.
+ // The recommended HTTP status code. Can be either an integer or a
+ // string if placeholders are needed. Optional. Default is 500.
StatusCode WeakString `json:"status_code,omitempty"`
}