| Conditions | 1 |
| Total Lines | 5 |
| Code Lines | 3 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package com.osomapps.pt; |
||
| 24 | @RequestMapping(value = PATH) |
||
| 25 | ErrorDTO error(WebRequest webRequest, HttpServletResponse response) { |
||
| 26 | // Appropriate HTTP response code (e.g. 404 or 500) is automatically set by Spring. |
||
| 27 | // Here we just define response body. |
||
| 28 | return new ErrorDTO(response.getStatus(), getErrorAttributes(webRequest, loggingLevel)); |
||
| 29 | } |
||
| 41 |