Fix status code for oauth registration. Contributed by @n00byking