In states where bail decisions cannot be appealed, defendants can usually challenge the judge's order by using a petition for writ of habeas corpus. Typically, appeals of all kinds are set within strict time limits, so you may need to begin the process soon after the bail hearing.