Add error responses

As to allow easy redirects and so on.