package Ġcom . bs ch and ram oh an . learn . spring connect . spring data reactive . configuration Ċ Ċ import Ġorg . springframework . http . HttpStatus Ċ import Ġorg . springframework . http . Response Entity Ċ Ċ data Ġclass ĠApi ServerError ( val Ġentity : ĠString , Ġval Ġoperation : ĠString , Ġval Ġe : ĠException ) Ġ: ĠResponseEntity < Any >( ĊĠĠĠ Ġ" Server Ġerror Ġperforming Ġop =$ operation Ġon Ġentity =$ entity ; Ġexception Message =${ e . message }", ĊĠĠĠ ĠHttpStatus . INTERNAL _ SERVER _ ERROR Ċ ) Ċ Ċ data Ġclass ĠEntity NotFoundError ( val Ġentity : ĠString ) Ġ: ĠResponseEntity < Any >(" Entity =$ entity ĠNOT Ġfound ", ĠHttpStatus . NOT _ FOUND ) Ċ