If an officer or other person to whom a writ of habeas corpus is directed neglects or refuses to:
according to the command of the writ, he shall forfeit to the person detained the sum of $500, and be liable to attachment and punishment as for a contempt.
D.C. Code § 16-1904