It should at least be 4xx - not sure which exactly is the most appropriate - but it definitely *shouldn't* be a 5xx.  I have to admit I haven't tested how Ext.Ajax responds to a 4xx, but since it's an error in HTTP terms, I'd be very surprised if Ext didn't treat it as such.