What errors are you thinking of that need handling here? Invalid input should be handled server side and are thus handled elsewhere in the code.