changed the default radius to 0
added logic for other status codes like 400 and 404