Skip to content

Commit

Permalink
Update constants.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ReneWerner87 authored Nov 11, 2022
1 parent 765e9b2 commit 553b721
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions api/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const (
MethodConnect = "CONNECT" // RFC 7231, 4.3.6
MethodOptions = "OPTIONS" // RFC 7231, 4.3.7
MethodTrace = "TRACE" // RFC 7231, 4.3.8
methodUse = "USE"
methodUse = "USE"
)
```

Expand Down Expand Up @@ -55,7 +55,7 @@ const (
StatusOK = 200 // RFC 7231, 6.3.1
StatusCreated = 201 // RFC 7231, 6.3.2
StatusAccepted = 202 // RFC 7231, 6.3.3
StatusNonAuthoritativeInfo = 203 // RFC 7231, 6.3.4
StatusNonAuthoritativeInformation = 203 // RFC 7231, 6.3.4
StatusNoContent = 204 // RFC 7231, 6.3.5
StatusResetContent = 205 // RFC 7231, 6.3.6
StatusPartialContent = 206 // RFC 7233, 4.1
Expand Down Expand Up @@ -117,28 +117,6 @@ Errors

```go
var (
ErrContinue = NewError(StatusContinue) // RFC 7231, 6.2.1
ErrSwitchingProtocols = NewError(StatusSwitchingProtocols) // RFC 7231, 6.2.2
ErrProcessing = NewError(StatusProcessing) // RFC 2518, 10.1
ErrEarlyHints = NewError(StatusEarlyHints) // RFC 8297
ErrOK = NewError(StatusOK) // RFC 7231, 6.3.1
ErrCreated = NewError(StatusCreated) // RFC 7231, 6.3.2
ErrAccepted = NewError(StatusAccepted) // RFC 7231, 6.3.3
ErrNonAuthoritativeInfo = NewError(StatusNonAuthoritativeInfo) // RFC 7231, 6.3.4
ErrNoContent = NewError(StatusNoContent) // RFC 7231, 6.3.5
ErrResetContent = NewError(StatusResetContent) // RFC 7231, 6.3.6
ErrPartialContent = NewError(StatusPartialContent) // RFC 7233, 4.1
ErrMultiStatus = NewError(StatusMultiStatus) // RFC 4918, 11.1
ErrAlreadyReported = NewError(StatusAlreadyReported) // RFC 5842, 7.1
ErrIMUsed = NewError(StatusIMUsed) // RFC 3229, 10.4.1
ErrMultipleChoices = NewError(StatusMultipleChoices) // RFC 7231, 6.4.1
ErrMovedPermanently = NewError(StatusMovedPermanently) // RFC 7231, 6.4.2
ErrFound = NewError(StatusFound) // RFC 7231, 6.4.3
ErrSeeOther = NewError(StatusSeeOther) // RFC 7231, 6.4.4
ErrNotModified = NewError(StatusNotModified) // RFC 7232, 4.1
ErrUseProxy = NewError(StatusUseProxy) // RFC 7231, 6.4.5
ErrTemporaryRedirect = NewError(StatusTemporaryRedirect) // RFC 7231, 6.4.7
ErrPermanentRedirect = NewError(StatusPermanentRedirect) // RFC 7538, 3
ErrBadRequest = NewError(StatusBadRequest) // RFC 7231, 6.5.1
ErrUnauthorized = NewError(StatusUnauthorized) // RFC 7235, 3.1
ErrPaymentRequired = NewError(StatusPaymentRequired) // RFC 7231, 6.5.2
Expand Down Expand Up @@ -309,4 +287,4 @@ const (
HeaderXRobotsTag = "X-Robots-Tag"
HeaderXUACompatible = "X-UA-Compatible"
)
```
```

0 comments on commit 553b721

Please sign in to comment.