package Ġde . share top ia . product service . product . exception Ċ Ċ import Ġorg . springframework . http . HttpStatus Ċ Ċ class ĠproductId Url Body Mismatch Exception ( productId In Url : ĠString , ĠproductId In Body : ĠString ) Ġ: ĊĠĠĠ ĠHttp Exception (" In Ġurl Ġprovided Ġproduct Ġid Ġ$ productId In Url Ġmis matches Ġproduct Ġid Ġ$ productId In Body Ġcontained Ġin Ġbody ") Ġ{ ĊĠĠĠ Ġoverride Ġval ĠerrorCode : ĠHttpStatus Ġ= ĠHttpStatus . BAD _ REQUEST Ċ }