Added response factory and status code mapping.