Use raise error instead of render 400