Make REST module errors more informative.