REST API with Spring Boot - Return Custom HTTP Status Code from RESTful Web Service Endpoint

preview_player
Показать описание

In this Spring Boot and Spring MVC video tutorial, you will learn how to return a custom HTTP Status code from your RESTful Web Service endpoint.

We will use the ResponseEntity class which can be used to return custom HTTP Status Code together with Response Body and HTTP Headers if needed.

**************************************************************************************
My Video Courses:
**************************************************************************************
Рекомендации по теме
Комментарии
Автор

Concise and thorough. Thanks for taking the time to make this tutorial! 👏🏼

fetterollie
Автор

Simple, fast and practical. I loved the video. Thank you very much for doing it.

tranquiloteov
Автор

thank you for this video. So very useful

sidneijunior
Автор

Is response entity the "best practice" way to response in spring boot?|

I was told that I should send as a request instead of a ResponseEntity,
a custom object with properties like status, error, and a payload that is a generic object.

Don't like this approach seems too custom-made.

Does it even makes sense to include info like HTTP status in the body?!

eimaisklhros
Автор

what about for a non-cloudbase non-restful fullstack type call?

jonathanrogers
Автор

Could you please pass the code of this video, to know where UserRest comes from.

TheJayko
Автор

Dislike! How I can set custom status for example 467?

ВячеславСергеевич-ун