Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a0e8397

Browse files
[fix] Removed the 'I am a teapot' response status
1 parent 135e3ec commit a0e8397

File tree

1 file changed

+1
-1
lines changed
  • d02/d02s04-exception-handling/src/main/java/net/safedata/spring/training/d02/s04/controller

1 file changed

+1
-1
lines changed

‎d02/d02s04-exception-handling/src/main/java/net/safedata/spring/training/d02/s04/controller/ProductController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public ResponseEntity<?> create(@RequestBody ProductDTO productDTO) {
6060
path = "/{id}"
6161
)
6262
public ResponseEntity<ProductDTO> getProduct(@PathVariable final int id) {
63-
return new ResponseEntity<>(productService.get(id), HttpStatus.I_AM_A_TEAPOT);
63+
return new ResponseEntity<>(productService.get(id), HttpStatus.OK);
6464
}
6565

6666
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /