Updated all endpoitns to return proper errors now rather than just throwing