Move HTTP-code-related actions to routes, leaving only task-related actions in task controller