Dealing error output
Define respond with location