https://github.com/gailo22/demo-error-codes
Rest error codes response with Swagger2 ui
https://github.com/gailo22/demo-error-codes
error-handling rest-api spring-boot swagger2
Last synced: 2 months ago
JSON representation
Rest error codes response with Swagger2 ui
- Host: GitHub
- URL: https://github.com/gailo22/demo-error-codes
- Owner: gailo22
- Created: 2017-11-10T07:39:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-10T07:47:59.000Z (over 8 years ago)
- Last Synced: 2025-03-28T16:35:51.335Z (over 1 year ago)
- Topics: error-handling, rest-api, spring-boot, swagger2
- Language: Shell
- Size: 48.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# demo-error-codes
Rest error codes response with Swagger2 ui
```
http://localhost:8080/swagger-ui.html#/
```
## call using jquery ajax
```
$.ajax({
method: "GET",
url: "http://localhost:8080/hello/403"
})
.done(function(data) {
console.log( "success: ");
console.log(JSON.stringify(data));
})
.fail(function (xhr, status, error) {
console.log(status);
console.log(JSON.parse(xhr.responseText));
})
```