Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 464 Bytes

README.MD

File metadata and controls

7 lines (5 loc) · 464 Bytes

Day 18 - Micronaut REST Error Handling

Yesterday we covered very basic use case for REST API in micronaut. Today we need to handle the response codes, depending on the application behaviour.

The task is to implement BookController logic in a way that it will return proper HTTP statuses (200, 404 and 418). Take a notice on tests - interesting fact is that HttpClient always throws an exception when response code id >= 400, so it requires special handling.