Facts
By judgment of 22 May 2015, the Cantonal Court of the Republic and Canton of Neuchâtel dismissed the appeal of [X.] against the decision of the Department of Economy and Social Action of the Republic and Canton of Neuchâtel (hereinafter: the Department). The Department had declared inadmissible an appeal in foreigners' law matters, because the appellant had not paid the advance on costs within the time limit set for 11 December 2014 by an interlocutory decision of 20 November 2014.
The interlocutory decision, received on 21 November 2014, contained the express warning that, failing payment of the advance on costs within the time limit, the appeal would be declared inadmissible. The Cantonal Court held that the Department had not shown excessive formalism.
Acting by way of subsidiary constitutional appeal, the appellant, represented by a lawyer, requests the annulment of the cantonal judgment and the grant of a short time limit to pay the advance on costs. He invokes Art. 29 para. 1 Cst. and complains of a violation of the prohibition of excessive formalism. He argues that Art. 20 LPJA/NE, which makes the provisions of the CPC on time limits and restitution applicable by analogy, refers to Art. 101 para. 3 CPC, which requires the court, upon expiry of an additional time limit, not to enter into the matter only if the advance is not paid.
No exchange of written submissions was ordered.
Main question: does the sanction of inadmissibility for late non-payment of the advance on costs constitute excessive formalism, and was the appellant entitled to an additional time limit under Art. 20 LPJA/NE?
Considerations
The Federal Supreme Court first examines admissibility. The subsidiary constitutional appeal is admissible, since the appellant only invokes the violation of a constitutional right against a final decision of a last cantonal instance. It is therefore unnecessary to examine whether the public law appeal is open under Art. 83 let. c FSCA (Art. 113, 114, 116, 117 and 90 FSCA).
On the merits, excessive formalism, a particular aspect of the denial of justice prohibited by Art. 29 para. 1 Cst., exists where the strict application of procedural rules is justified by no legitimate interest, becomes an end in itself, unreasonably complicates the enforcement of substantive law, or unacceptably impedes access to the courts. This prohibition pursues the same aim as the principle of good faith (Art. 5 para. 3 and Art. 9 Cst.) and requires the authority to point out procedural defects that are easily recognisable in good time.
According to case law, inadmissibility for failure to pay the advance on costs on time does not constitute excessive formalism or a denial of justice, provided that the parties were appropriately warned of the amount, the time limit and the consequences of failing to comply with it.
In the present case, these conditions are met: the interlocutory decision, received on 21 November 2014, expressly indicated the consequences of non-payment. Moreover, if the appellant needed an extension or considered that he was entitled to an additional time limit, it was for him to request it within the time limit set,…