I'm not sure if the error cases are ever going to be triggered, but if they are it might be nice to have some sort of error message rather than just a redirect.