Fix wrong response when endpoint doesn't exist.
Fix endpoint not existing errors.