fix: [internal] Simplify RestResponse code
fix: [internal] Simplify RestResponse code

MISP/MISP,MISP/MISP,SteveClement/MISP,SteveClement/MISP,SteveClement/MISP,MISP/MISP,MISP/MISP,SteveClement/MISP,MISP/MISP,SteveClement/MISP