image checker to return HTTP code when having error