Snippit to abort the request while returning the error as string in the response body the error is also logged with gin logger
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lil5 71d99cdf49 Add snippit 1 week ago
LICENSE Initial commit 1 week ago
README.md Initial commit 1 week ago
ginabort.go Add snippit 1 week ago

README.md

gin-abort-with-error-body

Snippit to abort the request while returning the error as string in the response body the error is also logged with gin logger