View definition

(*Context).AbortWithStatus

Defined in github.com/gin-gonic/gin/context.go

Description

AbortWithStatus calls `Abort()` and writes the headers with the specified status code. For example, a failed attempt to authentificate a request could use: context.AbortWithStatus(401).

AbortWithStatus is referenced in 59 repositories

github.com/gin-gonic/gin github.com/ansible-semaphore/semaphore github.com/Depado/goploader

...