Skip to content
keep_growing
  • Java
    • Spring Boot
  • Tools
  • Taking care
  • Angular
  • About
  • Sun Conure Software

YAGNI

Handle requests for a non-existent resource using Java Optional in a REST controller

13th December 201813th December 2018 little_pineconeSpring Boot
featured_image

When an API is asked for a resource that can’t be found, it is expected to return the HTTP 404 response code. To meet this requirement we don’t need to clutter our application logic with throwing exceptions and dealing with them along the way.

Read more
Created by Marta Szymek
  • Privacy Policy
Powered by WordPress | Theme: Astrid by aThemes.