Return null when Catching a 404 error in api